@model IEnumerable<OpenPac.Models.WorkExperience>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Company
        </th>
        <th>
            Start
        </th>
        <th>
            End
        </th>
        <th>
            Position
        </th>
        <th>
            Responsibilities
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
			@item.Company
        </td>
        <td>
			@String.Format("{0:g}", item.Start)
        </td>
        <td>
			@String.Format("{0:g}", item.End)
        </td>
        <td>
			@item.Position
        </td>
        <td>
			@item.Responsibilities
        </td>
    </tr>
}

</table>


